import fiftyone as fo
import fiftyone.zoo as foz
import fiftyone.utils.huggingface as fouh
from fiftyone import ViewField as F
from ultralytics import YOLO

ckpt_path = "yolov8l.pt"
model = YOLO(ckpt_path)
dataset = foz.load_zoo_dataset()

dataset.apply_model(model, label_field="base_model")
session = fo.launch_app(dataset)
session.view = dataset.view()